<?php
	// Default Dekoratoren
	$this->form->useDefaultDecorators();
	// Button durch ImageButton ersetzen
	$element = new Zend_Form_Element_Image('btnLogin');
    $element->setAttrib('src', 'sherpa/img/btn-login.gif');
	$this->form->removeElement('btnLogin');
	$this->form->addElement($element);
    // Erforderliche Angaben
	$element = new Zend_Form_Element_Text('required');
	$element->getDecorator('ViewHelper')->setOption('helper', 'FormNote');
	$element->setValue('<span class="required">*</span> erforderliche Angaben');
	$this->form->addElement($element);
	$this->form->getElement('btnLogin')->setOrder(1000);
	// Element-Klassen setzen
	$this->form->getElement('username')->setAttrib('class', 'textfield');
	$this->form->getElement('password')->setAttrib('class', 'textfield');
	$this->form->getElement('btnLogin')->getDecorator('HtmlTag')->setOption('class', 'button');
?>
<h2 class="title-bar">Mein Konto: Login</h2>
<div class="form-box-wrapper" style="width:442px">
	<div class="form-box">

		<h3>Login</h3>
		<p>Geben Sie Ihre E-Mail und Ihr Passwort ein.</p>
		<?php if(!$this->cookiesEnabled): ?>
			<p style="color:red;"><?php echo $this->translate('errorNoCookies') ?></p>
		<?php endif; ?>
		<?php if(isset($this->errors)): ?>
			<?php echo $this->formErrors($this->errors) ?>
		<?php endif; ?>
		<?php $this->form->setMethod('post')->setAction($this->urlThisPage(array(), null, false)) ?>
		<?php echo $this->form->render($this); ?>

		<p>Passwort vergessen? <a href="<?php echo $this->urlToPage($this->config('pageIdForgotPassword')) ?>">Klicken Sie hier</a>, um Ihr Passwort zur&uuml;ckzusetzen</p>
		<p>Sie haben kein Konto? <a href="<?php echo $this->urlToPage($this->config('pageIdRegistration')) ?>">Klicken Sie hier</a>, um sich zu registrieren.</p>

	</div>
</div>